const util = require('../../../../utils/util.js');
const api = require('../../../../config/api.js');
const user = require('../../../../services/user.js');
const common = require('../../../../utils/common.js');
const app = getApp();
Page({
  data: {
    //关联公众号面板
    relevance: false,
    //关于兴趣百科面板
    aboutUs: false,
  },
  //打开关联公众号面板
  openRelevance: function(){
    var _this = this
    _this.setData({
      relevance: true
    })
  },
  //打开关于兴趣百科面板
  openAboutUs: function () {
    var _this = this
    _this.setData({
      aboutUs: true
    })
  },
  //关闭面板
  closeMC: function () {
    var _this = this
    _this.setData({
      relevance: false,
      aboutUs: false
    })
  },
  //进入主页设置
  gotoHomeset: function(){
    wx.navigateTo({
      url: '../../../../ucenter/pages/ucenter/personinfo/homesetup/homesetup',
    })
  },
  //进入账号管理
  gotoUserManage: function(){
    wx.navigateTo({
      url: '../../../../interest/pages/interest/setting/userManage/userManage',
    })
  },
  //进入关注公众号
  gotoOfficial: function(){
    wx.navigateTo({
      url: '../../../../interest/pages/interest/setting/official/official',
    })
  },
  //进入消息设置
  gotoInfoSet: function () {
    wx.navigateTo({
      url: '../../../../interest/pages/interest/setting/infoSet/infoSet',
    })
  },
  //进入消息设置
  gotoBlacklist: function () {
    wx.navigateTo({
      url: '../../../../interest/pages/interest/setting/blacklist/blacklist',
    })
  },
})